<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<html>
<head>
	<!-- Date picker styles + css area -->
	<script src="./scripts/mootools-core.js" type="text/javascript"></script>
	<script src="./scripts/mootools-more.js" type="text/javascript"></script>
	<script src="./scripts/Picker_002.js" type="text/javascript"></script>
	<script src="./scripts/Picker.js" type="text/javascript"></script>
	<script src="./scripts/Picker_003.js" type="text/javascript"></script>
	<link href="./css/datepicker_vista.css" rel="stylesheet" type="text/css" media="screen"/>
	<!-- End of Date picker styles + css area -->
	<script>
		window.addEvent('domready', function(){ 
			new Picker.Date('vista1', {
				pickerClass: 'datepicker_vista'
			});
			new Picker.Date('vista2', {
				pickerClass: 'datepicker_vista'
			});
		});
	</script>
<title>Human Resource Entry</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<html:form action="/canExperienceUpdate">
	<div>
		<html:hidden property="id"/>
		<html:hidden property="canId"/>
		<br/>
		<table>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Company: *</label></td>
				<td><html:text property="company" style="width:220px;"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Job Title: * </label></td>
				<td><html:text property="jobTitle" style="width:220px;"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>From</label></td>
				<td><html:text property="fromDate" style="width:220px;" styleId="vista1"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>To</label></td>
				<td><html:text property="toDate" style="width:220px;" styleId="vista2"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Comment</label></td>
				<td><html:textarea property="comment" style="width:250px;height:100px;"></html:textarea></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"></td>
				<td><a style="color: red;"><bean:write name="canExperienceUpdate" property="message"/></a></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"></td>
				<td>
					<logic:equal name="canExperienceUpdate" property="isAddNew" value="true">
						<input type="button" value="Add" name="btnAdd" class="sbutton" id="btnAdd" onclick="postParams('act=add&btnAdd');"></input>
					</logic:equal>
					<logic:equal name="canExperienceUpdate" property="isAddNew" value="false">
						<input type="button" value="Edit" name="btnEdit" class="sbutton" id="btnEdit" onclick="postParams('act=edit&btnEdit');"></input>
					</logic:equal>
					<input type="reset" value="Reset" class="sbutton"></input>
				</td>
			</tr>
		</table> 
	</div> 
	</html:form>
</body>
</html>